Repository navigation
time.Sleep removal from tests - #178
Merged
Merged
Conversation
Should have read the Note comment...
Contributor
|
cc @tzdybal |
tzdybal
reviewed
Nov 12, 2021
tzdybal
left a comment
Contributor
There was a problem hiding this comment.
Thanks for your submission! This looks really cool 🚀
Please clean-up unnecessary commented out code.
Codecov Report
@@ Coverage Diff @@
## main #178 +/- ##
=======================================
Coverage 54.62% 54.62%
=======================================
Files 32 32
Lines 4978 4978
=======================================
Hits 2719 2719
Misses 1849 1849
Partials 410 410 Continue to review full report at Codecov.
|
adlerjohn
approved these changes
Nov 13, 2021
tzdybal
approved these changes
Nov 15, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've removed some of the time.Sleep usage in the tests that could be reliably replaced by some some event
There are still some time.Sleep invocation, especially those waiting for Node initialization. As far as I could figure out those nodes have not yet connected when p2p messages are being sent. Probably setting some event in the p2p client on connect would make it possible to determine if all nodes have established connection
Closes #96